package com.daidai.service;

import com.daidai.domain.Book;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BookService {

    public List<Book> getAllBooks();

    public Book getBookById(Integer id);

    public int saveBook(Book book);

    public int deleteBook(Integer id);

    public int updateBook(Book book);
}
